Interrupts

Interrupt Overview and IRQ Assignments

The MLB collects PCI and ISA errors and other interrupts from various sources and routes them to CPU IRQ_0 or CPU IRQ_1. The Real Time Clock interrupt is routed to CPU IRQ_2. CPU IRQ_3 is used for a front panel halt for Tru64 UNIX and OpenVMS (it is not used under Windows NT or Windows 2000 Professional). CPU IRQ_4 and IRQ_5 are not used.

InterruptCPU IRQ
PCI, ISA, and other errorsIRQ_0, IRQ_1
Real-time clock interruptsIRQ_2
Front panel haltIRQ_3 for Tru64 UNIX and OpenVMS only; not used for Windows NT or Windows 2000 Professional
Not usedIRQ_4, IRQ_5

These interrupts need to be posted via the TIG bus to the Tsunami C-Chip where they are collected in the Device Interrupt Register before being sent to the Alpha 21264 processor via the TIG bus. Programmable masking of interrupts is also done in the C-Chip using the Interrupt Mask Register.

All interrupts collected via the TIG Bus are level interrupts. In other words, these interrupt conditions remain present until cleared at the source through programmed I/O. The TIG Bus Interrupt posting buffers are not the real source of the interrupts and merely reading them will not clear the interrupt condition.

All ISA device interrupts are gathered by the Cypress Bridge chip and presented to the TIG Bus as a single level interrupt called INTR. All the rest of the System Board interrupts including PCI, errors and power status are allocated as shown in the following table.


TIG Bus Interrupt Assignments

C-Chip Device
Interrupt
Register bit#
IRQInterrupt Source
63
0
C-Chip Internal Error
62
0
P-Chip0 Error
61
0
P-Chip1 Error
60-59
0
Reserved for future use
58
3
Halt Interrupt (Optional jumper configurable)
57-56
-
reserved C-Chip internal
55
1
INTR from Cypress. Includes ISA, PCI-IDE, PCI-USB
54
1
SMI from Cypress
53
1
NMI from Cypress
52
1
SCI Power Management Interrupt
51
-
Unused
50
1
CPU Regulator OVP Interrupt
49
1
Tamper detect
48
1
FanFault
47
1
Embedded SCSI (1040C Qlogic)
46
1
Unused in Monet
45
1
Embedded Ethernet (21143)
44
1
Unused in Monet
43-40
1
PCI-Slot1 INTD,INTC,INTB,INTA
39-36
1
PCI-Slot2 INTD,INTC,INTB,INTA
35-32
1
PCI-Slot3 INTD,INTC,INTB,INTA
31-28
1
PCI-Slot4 INTD,INTC,INTB,INTA
27-24
1
PCI-Slot5 INTD,INTC,INTB,INTA


Real Time Clock Interrupt

In addition to these interrupts, the System Board also sends the Square Wave from the Cypress Real Time Clock to the C-Chip. The C-Chip uses the Square Wave positive edges to record Interval Timer Interrupts through C-Chip MISC register. This interrupt is routed to CPU IRQ_2.


Halt Interrupt

When running Tru64 UNIX and OpenVMS, the front panel Reset button is configured by SRM to generate a Halt interrupt to the Alpha 21264 processor. This is done with a state internal to the PIC power management microcontroller.

This interrupt will be sent on Interrupt Bit [58] of the C-Chip Device Interrupt Register. The Alpha 21264 processor will receive this interrupt on IRQ_0 which is the same as the error interrupts.

Various catastrophic or operator-induced conditions cause a Halt to the SRM console.

CodeDescription
1
Front Panel Halt button pushed
2
Kernal Stack Pointer invalid
5
Software Halt instruction executed
6
Double machine check


ISA Interrupts

The following table indicates the ISA interrupt assignments. Note that the ISA interrupts are collected in the Cypress bridge using two 8259 compatible interrupt controllers in the same fashion as the Intel SIO bridge. Some of the ISA devices (Keyboard/Mouse, RTC) are embedded inside the Cypress chip while others are external. Each interrupt condition is maskable.

ISA DeviceISA IRQNotes
Not available IRQ_0  Reserved for internal timer
Keyboard IRQ_1  
Not Available IRQ_2  
COM 2 Port IRQ_3  
COM 1 Port IRQ_4  
FDC (floppy) IRQ_6  
Parallel Port IRQ_5,7 Programmable Selection1
Mouse IRQ_12  
Audio (ES1887) IRQ_5,7,9-11 Programmable Selection1
PCI-IDE Primary IRQ_14  
PCI-IDE Secondary IRQ_15  
ISA Option Slot IRQ_3-7,9-12,14-15 Programmable Selection1

1 IRQ5 is reserved for use with audio. IRQ7 is reserved for use by the parallel port. IRQ10 is reserved for use by the USB controller, regardless of whether it is enabled.

Note: AlphaBIOS sets up for audio use of IRQ5 at system power-on before it checks for any user-preference selections. Once IRQ5 is set up, it cannot be undone; therefore, IRQ5 can only be used for audio. Audio does not work with IRQ7, and it is important that users do not attempt to override the default.


Fan Fault Interrupt

The Fan_Fault interrupt is generated when the fan fault circuitry on the MLB detects a fan failure. This interrupt cannot be cleared until the error condition goes away. The normal response to this interrupt would be record the error and perform a graceful shutdown.


TIG Interrupt Processing

The C-Chip is responsible for collecting interrupts off the TIG bus. It does this continually in the background as a low-priority activity on the TIG Bus. An interrupt gathering cycle consists of reading all the interrupt bytes selected (the Compaq AlphaStation XP1000 System has 5), updating the Raw Device Interrupt Register and the Masked Device Interrupt Register in the C-Chip and finally performing a write to the Alpha 21264 processor IRQ register on the TIG DATA Bus. This entire interrupt gathering cycle is automatic.